
**********
*Table 4: Difference-in-difference estimates of treatment effect in Pacaraima with alternative controls 
**********

***Column 1 Pacaraima - Border Roraima 
clear all
set more off
cap log close
cd ""
use, replace 

keep treat1 treat5
rename treat1 pacaraima

global x "life_expect illit_25 school gini poverty water_sewer  garbage electric female_pop agriculture fish construction mine def rain temp cattle rural"

reg malaria_vene $x post##pacaraima i.munic_code i.year, cl(munic_code)
outreg2 using table4.1.1, replace stats(coef se) asterisk(coeff)

reg malaria_bra $x post##pacaraima i.munic_code i.year, cl(munic_code)
outreg2 using table4.1.2, replace stats(coef se) asterisk(coeff)

***Column 2 Pacaraima - Border Amazonas
clear all
set more off
cap log close
cd ""
use, replace 

keep treat1 treat6
rename treat1 pacaraima

global x "life_expect illit_25 school gini poverty water_sewer  garbage electric female_pop agriculture fish construction mine def rain temp cattle rural"

reg malaria_vene $x post##pacaraima i.munic_code i.year, cl(munic_code)
outreg2 using table4.2.1, replace stats(coef se) asterisk(coeff)

reg malaria_bra $x post##pacaraima i.munic_code i.year, cl(munic_code)
outreg2 using table4.2.2, replace stats(coef se) asterisk(coeff)


***Column 3 Pacaraima - Amazonia Legal
clear all
set more off
cap log close
cd ""
use, replace 

keep treat1 treat7
rename treat1 pacaraima

global x "life_expect illit_25 school gini poverty water_sewer  garbage electric female_pop agriculture fish construction mine def rain temp cattle rural"

reg malaria_vene $x post##pacaraima i.munic_code i.year, cl(munic_code)
outreg2 using table4.3.1, replace stats(coef se) asterisk(coeff)

reg malaria_bra $x post##pacaraima i.munic_code i.year, cl(munic_code)
outreg2 using table4.3.2, replace stats(coef se) asterisk(coeff)
